﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.StopEquipment

@model CreateOrEditStopEquipmentModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditFactory") + ": " + Model.StopEquipment.Line) : L("CreateFactory")))

<!--html代码区域-->
<div class="modal-body">
    <form name="stopEquipmentInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.StopEquipment.Id" />
        <div>


            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.StopEquipment.Id" />
                }
            </div>


            <div class="form-group">
                <label>@L("Line") <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.Line.IsNullOrEmpty() ? "" : " edited")" type="text" name="Line" value="@Model.StopEquipment.Line" required maxlength="20" />

            </div>
       
            <div class="form-group ">
                <label>@L("StopDate"):    <span class="required"> * </span> </label>
                <div class="input-group  date form_datetime">
                    <input type="text" name="StopDate" id="StopDate" value="@Model.StopEquipment.StopDate" readonly class="form-control">
                    <span class="input-group-btn">
                        <button class="btn default date-set" type="button">
                            <i class="fa fa-calendar"></i>
                        </button>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <label>@L("Shift")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.Shift.IsNullOrEmpty() ? "" : " edited")" type="text" name="Shift" value="@Model.StopEquipment.Shift" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("Starttime")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.Starttime.IsNullOrEmpty() ? "" : " edited")" type="text" name="Starttime" value="@Model.StopEquipment.Starttime" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("EndTime")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.EndTime.IsNullOrEmpty() ? "" : " edited")" type="text" name="EndTime" value="@Model.StopEquipment.EndTime" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("StopTime")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.StopTime.IsNullOrEmpty() ? "" : " edited")" type="text" name="StopTime" value="@Model.StopEquipment.StopTime" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("OffLineCount")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.OffLineCount.IsNullOrEmpty() ? "" : " edited")" type="text" name="OffLineCount" value="@Model.StopEquipment.OffLineCount" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("CarType")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.CarType.IsNullOrEmpty() ? "" : " edited")" type="text" name="CarType" value="@Model.StopEquipment.CarType" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("StopReason")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.StopReason.IsNullOrEmpty() ? "" : " edited")" type="text" name="StopReason" value="@Model.StopEquipment.StopReason" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("Assemesy")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.Assemesy.IsNullOrEmpty() ? "" : " edited")" type="text" name="Assemesy" value="@Model.StopEquipment.Assemesy" required maxlength="20" />

            </div>
            <div class="form-group">
                <label>@L("ResponsibleDepartment")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.StopEquipment.ResponsibleDepartment.IsNullOrEmpty() ? "" : " edited")" type="text" name="ResponsibleDepartment" value="@Model.StopEquipment.ResponsibleDepartment" required maxlength="20" />

            </div>

        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")



 
